package com.e3.basdoc.employee.server;

import com.e3.basdoc.employee.service.EmployeeQueryService;
import com.e3.basdoc.employee.service.EmployeeService;
import com.e3.core.base.ServiceLocator;

public class EmployeeServiceClient {
	
	private static EmployeeService employeeService;
	
	private static EmployeeQueryService employeeQueryService;
	
	public static EmployeeService getEmployeeService(){
		if(employeeService == null){
			employeeService = ServiceLocator.getService(EmployeeService.class);
		}
		return employeeService;
	}
	
	public static EmployeeQueryService getEmployeeQueryService(){
		if(employeeQueryService == null){
			employeeQueryService = ServiceLocator.getQueryService(EmployeeQueryService.class);
		}
		return employeeQueryService;
	}

}
